
<?php
$pckgname=$_POST['src'];
//exit($pckgname);




if($pckgname=="standard")
$pckgname=0;
else if($pckgname=="basic")
$pckgname=1;
else if($pckgname=="business")
$pckgname=2;


require_once("./connect.php");

//$abc=$_POST['to_save'];


$ini=parse_ini_file('config.ini',false);

//$con = mysql_connect($ini['dbHost'],$ini['dbUser'],$ini['dbPass']);

mysql_select_db($ini['dbName']);
if(mysql_select_db($ini['dbName']))
{
    //$q="INSERT INTO `Adventkalender`.`save`( `saveJSON` )VALUES('$abc');";
    //$q = "select * from login where email='" . $email . "' and password='" . $pass . "';";

    

$q ="Select * From packagebackgrounds Where packageId='".$pckgname."';";    

        $r = mysql_query($q);


while($row = mysql_fetch_array($r)){

    $img=$row['backgrounds'];
echo '<img src="' . $img . '" style="cursor:pointer;" width="220" height="200" alt="' . 
             $img . '"/>' . "\n";
   // echo $img;
  }
	
}

?>